home *** CD-ROM | disk | FTP | other *** search
- .bra [
- .ket ]
-
- echo ""
- echo "This script will create a PowerPC version of the"
- echo "SAS/C Development System. You should have SAS/C"
- echo "6.5x installed on your machine before running this"
- echo "script. This process will not affect the 68k compiler."
- echo ""
- echo "Please read the read.me file for details and limitations"
- echo "of the PowerPC compiler."
- echo ""
- ask "Continue with patch?"
-
- if warn
-
- echo Creating SCPPC
- decompress SASC_6.50_Disk_1:Compiler/c_files t: sc
- spatch -osc:c/scppc -pscppc.pch t:sc
- delete t:sc quiet
-
- echo Creating SLINKPPC
- decompress SASC_6.50_Disk_1:Compiler/c_files t: slink
- spatch -osc:c/slinkppc -pslink.pch t:slink
- delete t:sc quiet
-
- echo Creating SC2PPC.LIBRARY
- decompress SASC_6.50_Disk_1:Compiler/libs_files t: sc2.library
- spatch -osc:libs/sc2ppc.library -psc2ppc.pch t:sc2.library
- delete t:sc2.library quiet
-
- echo Creating SC2PPCH.LIBRARY
- decompress SASC_6.50_Disk_1:Compiler/libs_files t: sc2.library
- spatch -osc:libs/sc2ppch.library -psc2ppch.pch t:sc2.library
- delete t:sc2.library quiet
-
- echo Creating SC1PPC.LIBRARY
- decompress SASC_6.50_Disk_1:Compiler/libs_files t: sc1.library
- spatch -osc:libs/sc1ppc.library -psc1ppc.pch t:sc1.library
- delete t:sc1.library quiet
-
- echo Creating SCDEBUGPPC.LIBRARY
- decompress SASC_6.50_Disk_1:Compiler/libs_files t: scdebug.library
- spatch -osc:libs/scdebugppc.library -pscdebugppc.pch t:scdebug.library
- delete t:scdebug.library quiet
-
-
- echo Creating C Runtime Library
- decompress SASC_6.50_Disk_1:Compiler/c_files t: sc
- spatch -osc:lib/scppc.a -pscppc_lib.pch t:sc
- delete t:sc
-
- echo Creating C Runtime Library (hunk version)
- decompress SASC_6.50_Disk_1:Compiler/c_files t: sc
- spatch -osc:lib/scppc.lib -pscppc_libh.pch t:sc
- delete t:sc
-
- echo Creating C++ Runtime Library
- decompress SASC_6.50_Disk_1:Compiler/c_files t: sc
- spatch -osc:lib/sccxxppc.a -psccxxppc_lib.pch t:sc
- delete t:sc
-
- echo Creating C++ Runtime Library (hunk version)
- decompress SASC_6.50_Disk_1:Compiler/c_files t: sc
- spatch -osc:lib/sccxxppc.lib -psccxxppc_libh.pch t:sc
- delete t:sc
-
-
- echo Creating SCGOPPC.LIBRARY
- decompress SASC_6.50_Disk_3:optimizers/libs_files t: scgo.library
- spatch -osc:libs/scgoppc.library -pscgoppc.pch t:scgo.library
- delete t:scgo.library quiet
-
- echo Creating SCPEEPPPC.LIBRARY
- decompress SASC_6.50_Disk_3:optimizers/libs_files t: scpeep.library
- spatch -osc:libs/scpeepppc.library -pscpeepppc.pch t:scpeep.library
- delete t:scpeep.library quiet
-
-
- echo Creating SCCXXPPC.LIBRARY
- decompress SASC_6.50_Disk_3:C_PLUS_PLUS/libs_files t: sccxx.library
- spatch -osc:libs/sccxxppc.library -psccxxppc.pch t:sccxx.library
- delete t:sccxx.library quiet
-
-
- echo Creating CPRPPC
- decompress SASC_6.50_Disk_4:Debugger/c_files t: cpr
- spatch -osc:c/cprppc -pcprppc.pch t:cpr
- delete t:cpr quiet
-
- echo Creating SCHIPPC.LIBRARY
- decompress SASC_6.50_Disk_4:Debugger/libs_files t: schi.library
- spatch -osc:libs/schippc.library -pschippc.pch t:schi.library
- delete t:schi.library quiet
-
-
- copy examples/runelf sc:c/runelf
-
- echo Adding PPC style varargs macros to stdarg.h
- decompress SASC_6.50_Disk_2:compiler/include_files t: stdarg.h
- spatch -osc:include/stdarg.h -pstdarg.pch t:stdarg.h
- delete t:stdarg.h quiet
-
- decompress SASC_6.50_Disk_2:compiler/include_files t: setjmp.h
- spatch -osc:include/setjmp.h -psetjmp.pch t:setjmp.h
- delete t:setjmp.h quiet
-
- decompress SASC_6.50_Disk_2:compiler/include_files t: stdio.h
- spatch -osc:include/stdio.h -pstdio.pch t:stdio.h
- delete t:stdio.h quiet
-
-
- decompress SASC_6.50_Disk_2:compiler/include/sys_files t: commlist.h
- spatch -osc:include/sys/commlist.h -pcommlist.pch t:commlist.h
- delete t:commlist.h quiet
-
-
- decompress SASC_6.50_Disk_2:compiler/include/proto_files t: exec.h
- spatch -pexec.pch -osc:include/proto/exec.h t:exec.h
- delete t:exec.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: amigaguide_pragmas.h
- spatch -pamigaguide_pragmas.pch -osc:include/pragmas/amigaguide_pragmas.h t:amigaguide_pragmas.h
- delete t:amigaguide_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: asl_pragmas.h
- spatch -pasl_pragmas.pch -osc:include/pragmas/asl_pragmas.h t:asl_pragmas.h
- delete t:asl_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: battclock_pragmas.h
- spatch -pbattclock_pragmas.pch -osc:include/pragmas/battclock_pragmas.h t:battclock_pragmas.h
- delete t:battclock_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: battmem_pragmas.h
- spatch -pbattmem_pragmas.pch -osc:include/pragmas/battmem_pragmas.h t:battmem_pragmas.h
- delete t:battmem_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: bullet_pragmas.h
- spatch -pbullet_pragmas.pch -osc:include/pragmas/bullet_pragmas.h t:bullet_pragmas.h
- delete t:bullet_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: cardres_pragmas.h
- spatch -pcardres_pragmas.pch -osc:include/pragmas/cardres_pragmas.h t:cardres_pragmas.h
- delete t:cardres_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: cia_pragmas.h
- spatch -pcia_pragmas.pch -osc:include/pragmas/cia_pragmas.h t:cia_pragmas.h
- delete t:cia_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: colorwheel_pragmas.h
- spatch -pcolorwheel_pragmas.pch -osc:include/pragmas/colorwheel_pragmas.h t:colorwheel_pragmas.h
- delete t:colorwheel_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: commodities_pragmas.h
- spatch -pcommodities_pragmas.pch -osc:include/pragmas/commodities_pragmas.h t:commodities_pragmas.h
- delete t:commodities_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: console_pragmas.h
- spatch -pconsole_pragmas.pch -osc:include/pragmas/console_pragmas.h t:console_pragmas.h
- delete t:console_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: datatypes_pragmas.h
- spatch -pdatatypes_pragmas.pch -osc:include/pragmas/datatypes_pragmas.h t:datatypes_pragmas.h
- delete t:datatypes_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: disk_pragmas.h
- spatch -pdisk_pragmas.pch -osc:include/pragmas/disk_pragmas.h t:disk_pragmas.h
- delete t:disk_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: diskfont_pragmas.h
- spatch -pdiskfont_pragmas.pch -osc:include/pragmas/diskfont_pragmas.h t:diskfont_pragmas.h
- delete t:diskfont_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: dos_pragmas.h
- spatch -pdos_pragmas.pch -osc:include/pragmas/dos_pragmas.h t:dos_pragmas.h
- delete t:dos_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: dtclass_pragmas.h
- spatch -pdtclass_pragmas.pch -osc:include/pragmas/dtclass_pragmas.h t:dtclass_pragmas.h
- delete t:dtclass_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: exec_old_pragmas.h
- spatch -pexec_old_pragmas.pch -osc:include/pragmas/exec_old_pragmas.h t:exec_old_pragmas.h
- delete t:exec_old_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: exec_pragmas.h
- spatch -pexec_pragmas.pch -osc:include/pragmas/exec_pragmas.h t:exec_pragmas.h
- delete t:exec_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: exec_sysbase_pragmas.h
- spatch -pexec_sysbase_pragmas.pch -osc:include/pragmas/exec_sysbase_pragmas.h t:exec_sysbase_pragmas.h
- delete t:exec_sysbase_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: expansion_pragmas.h
- spatch -pexpansion_pragmas.pch -osc:include/pragmas/expansion_pragmas.h t:expansion_pragmas.h
- delete t:expansion_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: gadtools_pragmas.h
- spatch -pgadtools_pragmas.pch -osc:include/pragmas/gadtools_pragmas.h t:gadtools_pragmas.h
- delete t:gadtools_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: graphics_pragmas.h
- spatch -pgraphics_pragmas.pch -osc:include/pragmas/graphics_pragmas.h t:graphics_pragmas.h
- delete t:graphics_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: icon_pragmas.h
- spatch -picon_pragmas.pch -osc:include/pragmas/icon_pragmas.h t:icon_pragmas.h
- delete t:icon_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: iffparse_pragmas.h
- spatch -piffparse_pragmas.pch -osc:include/pragmas/iffparse_pragmas.h t:iffparse_pragmas.h
- delete t:iffparse_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: input_pragmas.h
- spatch -pinput_pragmas.pch -osc:include/pragmas/input_pragmas.h t:input_pragmas.h
- delete t:input_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: intuition_pragmas.h
- spatch -pintuition_pragmas.pch -osc:include/pragmas/intuition_pragmas.h t:intuition_pragmas.h
- delete t:intuition_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: keymap_pragmas.h
- spatch -pkeymap_pragmas.pch -osc:include/pragmas/keymap_pragmas.h t:keymap_pragmas.h
- delete t:keymap_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: layers_pragmas.h
- spatch -players_pragmas.pch -osc:include/pragmas/layers_pragmas.h t:layers_pragmas.h
- delete t:layers_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: locale_pragmas.h
- spatch -plocale_pragmas.pch -osc:include/pragmas/locale_pragmas.h t:locale_pragmas.h
- delete t:locale_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: lowlevel_pragmas.h
- spatch -plowlevel_pragmas.pch -osc:include/pragmas/lowlevel_pragmas.h t:lowlevel_pragmas.h
- delete t:lowlevel_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: mathffp_pragmas.h
- spatch -pmathffp_pragmas.pch -osc:include/pragmas/mathffp_pragmas.h t:mathffp_pragmas.h
- delete t:mathffp_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: mathieeedoubbas_pragmas.h
- spatch -pmathieeedoubbas_pragmas.pch -osc:include/pragmas/mathieeedoubbas_pragmas.h t:mathieeedoubbas_pragmas.h
- delete t:mathieeedoubbas_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: mathieeedoubtrans_pragmas.h
- spatch -pmathieeedoubtrans_pragmas.pch -osc:include/pragmas/mathieeedoubtrans_pragmas.h t:mathieeedoubtrans_pragmas.h
- delete t:mathieeedoubtrans_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: mathieeesingbas_pragmas.h
- spatch -pmathieeesingbas_pragmas.pch -osc:include/pragmas/mathieeesingbas_pragmas.h t:mathieeesingbas_pragmas.h
- delete t:mathieeesingbas_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: mathieeesingtrans_pragmas.h
- spatch -pmathieeesingtrans_pragmas.pch -osc:include/pragmas/mathieeesingtrans_pragmas.h t:mathieeesingtrans_pragmas.h
- delete t:mathieeesingtrans_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: mathtrans_pragmas.h
- spatch -pmathtrans_pragmas.pch -osc:include/pragmas/mathtrans_pragmas.h t:mathtrans_pragmas.h
- delete t:mathtrans_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: misc_pragmas.h
- spatch -pmisc_pragmas.pch -osc:include/pragmas/misc_pragmas.h t:misc_pragmas.h
- delete t:misc_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: nonvolatile_pragmas.h
- spatch -pnonvolatile_pragmas.pch -osc:include/pragmas/nonvolatile_pragmas.h t:nonvolatile_pragmas.h
- delete t:nonvolatile_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: potgo_pragmas.h
- spatch -ppotgo_pragmas.pch -osc:include/pragmas/potgo_pragmas.h t:potgo_pragmas.h
- delete t:potgo_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: ramdrive_pragmas.h
- spatch -pramdrive_pragmas.pch -osc:include/pragmas/ramdrive_pragmas.h t:ramdrive_pragmas.h
- delete t:ramdrive_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: realtime_pragmas.h
- spatch -prealtime_pragmas.pch -osc:include/pragmas/realtime_pragmas.h t:realtime_pragmas.h
- delete t:realtime_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: rexxsyslib_pragmas.h
- spatch -prexxsyslib_pragmas.pch -osc:include/pragmas/rexxsyslib_pragmas.h t:rexxsyslib_pragmas.h
- delete t:rexxsyslib_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: timer_pragmas.h
- spatch -ptimer_pragmas.pch -osc:include/pragmas/timer_pragmas.h t:timer_pragmas.h
- delete t:timer_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: translator_pragmas.h
- spatch -ptranslator_pragmas.pch -osc:include/pragmas/translator_pragmas.h t:translator_pragmas.h
- delete t:translator_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: utility_pragmas.h
- spatch -putility_pragmas.pch -osc:include/pragmas/utility_pragmas.h t:utility_pragmas.h
- delete t:utility_pragmas.h
-
- decompress SASC_6.50_Disk_2:compiler/include/pragmas_files t: wb_pragmas.h
- spatch -pwb_pragmas.pch -osc:include/pragmas/wb_pragmas.h t:wb_pragmas.h
- delete t:wb_pragmas.h
-
- echo "Installing INLINE functions to access 68k OS Routines."
- failat 100
- makedir sc:ppcinclude > nil:
- failat 20
- copy ppcpragmas sc:ppcinclude/ppcpragmas quiet
-
-
- copy c_ppc.o sc:lib
- copy end.o sc:lib
-
- copy c_ppc.c sc:source
-
-
- echo "Installing read.me file for PPC"
- copy read.me sc:read.me.ppc
- copy read.me.info sc:read.me.ppc.info
-
- assign ppcinclude: sc:ppcinclude
-
- echo ""
- echo ""
- echo ""
- echo ""
- echo "Please add the following statement to your user-startup file"
- echo "assign PPCINCLUDE: sc:ppcinclude"
-
- endif
-